package com.lyl.anno.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

import java.lang.annotation.Annotation;

/**
 * @author Mr.Luo
 * @date 2022-07-26 10:08
 * @desc
 */
@Aspect
@Component
public class PipeLineAop {

    @Pointcut("@annotation(com.lyl.anno.anno.ValidGroup)")
    public void pointcut(){}

    @Around("pointcut()")
    public Object around(ProceedingJoinPoint joinPoint){
        Class declaringType = joinPoint.getSignature().getDeclaringType();
        Annotation[] annotations = declaringType.getAnnotations();
        return null;
    }
}
